<!--河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
-->
<template>
  <div class='app-container'>
    <el-form ref="form" :model="s_person" :rules="rules" label-width="100px" id="mvcfm">
      <el-button @click="gotoPage('/oa/humanresources/ReductionPerson?'+vueparams+'')" type='primary' size="mini"><i class='fa fa-reply'></i>返回</el-button>
      <div class="form-unit">
        <span class="mvc-title-left"> 员工基本信息 </span>
      </div>
      <div>
        <el-row>
          <el-col :span="12">
            <el-form-item label="姓名" prop="">
              {{s_person.person_name}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <el-form-item label="性别" prop="">
              {{s_person.person_sex}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <el-form-item label="出生年月" prop="">
              {{s_person.person_birthday}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <el-form-item label="民族" prop="">
              {{s_person.person_ethnic}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="籍贯" prop="">
              {{s_person.person_local}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <el-form-item label="政治面貌" prop="">
              {{s_person.description}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <el-form-item label="婚姻状况" prop="">
              {{s_person.person_ismarry}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="健康状况" prop="">
              {{s_person.person_health}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="职业资格证书" prop="">
              {{s_person.person_cdt}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="取得时间" prop="">
              {{s_person.person_getcdtdate}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="学历" prop="">
              {{s_person.person_level}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <el-form-item label="照片" prop="">
            </el-form-item>
          </el-col>
        </el-row>
      </div>
      <div class="form-unit">
        <span class="mvc-title-left"> 学历学位 </span>
      </div>
      <el-table :data="s_level">
        <el-table-column label="就读院校" prop="level_academy">
        </el-table-column>
        <el-table-column label="就读时间" prop="level_bgdate">
          <template slot-scope="scope">
          </template>
        </el-table-column>
        <el-table-column label="毕业时间" prop="level_edate">
          <template slot-scope="scope">
          </template>
        </el-table-column>
      </el-table>
      <div class="form-unit">
        <span class="mvc-title-left"> 工作经历 </span>
      </div>
      <el-table :data="s_wkundergo">
        <el-table-column label="工作单位" prop="undergo_nunit">
        </el-table-column>
        <el-table-column label="部门" prop="undergo_post">
        </el-table-column>
        <el-table-column label="职务" prop="undergo_level">
        </el-table-column>
        <el-table-column label="任职时间" prop="undergo_date">
          <template slot-scope="scope">
          </template>
        </el-table-column>
      </el-table>
      <div class="form-unit">
        <span class="mvc-title-left"> 通讯信息 </span>
      </div>
      <el-table :data="s_relation">
        <el-table-column label="电话" prop="relation_tel">
        </el-table-column>
        <el-table-column label="手机" prop="relation_cel">
        </el-table-column>
        <el-table-column label="E-mail" prop="relation_email">
        </el-table-column>
      </el-table>
      <div class="form-unit">
        <span class="mvc-title-left"> 家庭信息 </span>
      </div>
      <el-table :data="s_mem">
        <el-table-column label="姓名" prop="mem_name">
        </el-table-column>
        <el-table-column label="关系" prop="mem_level">
        </el-table-column>
        <el-table-column label="职业" prop="mem_prof">
        </el-table-column>
        <el-table-column label="现处在单位" prop="mem_unit">
        </el-table-column>
        <el-table-column label="电话" prop="mem_tel">
        </el-table-column>
        <el-table-column label="手机" prop="mem_cel">
        </el-table-column>
      </el-table>
      <el-button @click="gotoPage('/oa/humanresources/ApplyUp?'+vueparams+'')" type='success' size="mini"><i class='fa fa-edit'></i>修改</el-button>
      <el-button @click="gotoPage('/oa/humanresources/PersonnelResources?'+vueparams+'')" type='primary' size="mini"><i class='fa fa-reply'></i>返回</el-button>
      <div class="form-unit">
        <span class="mvc-title-left"> 技能 </span>
      </div>
      <div>
        <el-row>
          <el-col :span="12">
            <el-form-item label="技能特长" prop="">
              {{s_skill.skill_speciality}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="外语水平" prop="">
              {{s_skill.skill_english}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="计算机水平" prop="">
              {{s_skill.skill_computer}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="省部级以上奖励" prop="">
              {{s_skill.skill_reward}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="何时何地受过何种处分" prop="">
              {{s_skill.skill_punish}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <el-form-item label="自我评价" prop="">
              <div style="white-space: pre-wrap;">{{s_skill.skill_assess}}</div>
            </el-form-item>
          </el-col>
        </el-row>
      </div>
    </el-form>
  </div>
</template>
<script>
  import request from '@/utils/request'
  export default {
    name: 'DetReduction',
    components: {},
    props: ['popparams'],
    data() {
      return {
        vueparams: this.getVUEParams(""),
        s_person: {
          person_name: null,
          person_sex: null,
          person_birthday: null,
          person_ethnic: null,
          person_local: null,
          description: null,
          person_ismarry: null,
          person_health: null,
          person_cdt: null,
          person_getcdtdate: null,
          person_level: null,
        },
        s_level: [],
        s_wkundergo: [],
        s_relation: [],
        s_mem: [],
        s_skill: {
          skill_speciality: null,
          skill_english: null,
          skill_computer: null,
          skill_reward: null,
          skill_punish: null,
          skill_assess: null,
        },
        loading: false,
        rules: {}
      }
    },
    created() {
      this.getData();
    },
    updated() {},
    mounted() {},
    methods: {
      getData() {
        request({
          method: 'get',
          url: '/xcapi/VUEAction/oa/humanresources/InterviewInfoAction/detReduction?' + this.vueparams,
        }).then(data => {
          for (var k in data) {
            if (Array.isArray(data[k])) {
              this[k] = data[k];
            } else {
              $.extend(this[k], data[k]);
            }
          }
        })
      },
    },
  }
</script>
